﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Clientes.aspx.cs" Inherits="App.UI.Clientes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <span class="titulo">
        <asp:Literal Text="Clientes" runat="server" />
        <a href="CadastroClientes.aspx" class="m-btn mini right go-left"><i class="icon-plus">
        </i>Novo Cliente</a>
        <a href="javascript:history.back();" class="m-btn mini right go-left"><i class="icon-home">
        </i> Home</a> </span>
    <%--<label>
    <span>Nome</span>
    <asp:TextBox ID="txtNome" class="m-wrap" placeholder="Styled" runat="server" />
</label>--%>
    <%-- <div class="alert alert-block" runat="server" id="alert" visible="false">
        <button type="button" class="close" data-dismiss="alert">
            ×</button>
        <h4>
            Warning!</h4>
        Best check yo self, you're not...
    </div>--%>
    <div class="clear">
    </div>
    <div class="grid">
        <asp:GridView ID="grdView" AllowPaging="True" CssClass="table table-striped table-bordered table-condensed" AutoGenerateColumns="False" EmptyDataText="Nenhum registro encontrado"
            OnPageIndexChanging="grdView_PageIndexChanging" PageSize="15" runat="server">
            <Columns>
                <asp:BoundField DataField="Nome" ItemStyle-CssClass="usuarios" HeaderText="Nome" />
                  <asp:BoundField DataField="Cargo" ItemStyle-CssClass="usuarios" HeaderText="Cargo" />
                <asp:BoundField DataField="Email" ItemStyle-CssClass="usuarios"  DataFormatString="&lt;a href=&quot;mailto:{0}&quot;&gt;{0}&lt;/a&gt;"
                    HeaderText="Email" HtmlEncode="False" />
          
                <asp:TemplateField HeaderText="Ações">
                    <ItemTemplate>
                     <asp:LinkButton ID="Editar" CssClass="btn-grid" ToolTip="Editar" CommandArgument='<%# Eval("Usuario_ID") %>'
                            OnCommand="btnEditar_Command" runat="server">
                            <asp:Image ID="Image1" AlternateText="Editar" ToolTip="Editar" ImageUrl="/App_Themes/Site/Imagens/edit.png"
                                runat="server" />
                        </asp:LinkButton>
                        <asp:LinkButton ID="Deletar" CssClass="btn-grid" ToolTip="Deletar" CommandArgument='<%# Eval("Usuario_ID") %>'
                            OnCommand="btnDeletar_Command" runat="server">
                        <asp:image imageurl="/App_Themes/Site/Imagens/delete.png" AlternateText="Deletar"
                            ToolTip="Deletar" runat="server" />
                        </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <%--<table class="table table-striped table-bordered table-condensed">
            <tr>
                <td>
                    Nome
                </td>
                <td>
                    Email
                </td>
                <td>
                    Cargo
                </td>
                <td>
                    Ações
                </td>
            </tr>
            <asp:Repeater ID="rptView" runat="server">
                <ItemTemplate>
                    <tr>
                        <td>
                            <%# Eval("Nome") %>
                        </td>
                        <td>
                            <%# Eval("Email") %>
                        </td>
                       <td>
                            <%# Eval("Cargo") %>
                        </td>
                        <td> <asp:LinkButton ID="Editar" CssClass="btn-grid" ToolTip="Editar" CommandArgument='<%# Eval("Usuario_ID") %>'
                                OnCommand="btnEditar_Command" runat="server" ><asp:image ID="Image1" AlternateText="Editar"  ToolTip="Editar" imageurl="/App_Themes/Site/Imagens/edit.png" runat="server" /></asp:LinkButton>
                            <asp:LinkButton ID="Deletar" CssClass="btn-grid" ToolTip="Deletar"  CommandArgument='<%# Eval("Usuario_ID") %>'
                                OnCommand="btnDeletar_Command" runat="server" ><asp:image imageurl="/App_Themes/Site/Imagens/delete.png" AlternateText="Deletar"  ToolTip="Deletar" runat="server" /></asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>--%>
    </div>
</asp:Content>
